package com.jackyzgy.test.thread;

public class Thread3 extends Thread {

	public static boolean flag3 = true;
	
	@Override
	public void run() {
		while(flag3){
			try {
				for(int i=0;i<MainTest.vector.size();i++){
					System.out.println("Thread3 > "+MainTest.vector.get(i));
					if(i == 0){
						MainTest.vector = null;
					}
					MainTest.vector.remove(i);
				}
			} catch (Exception e) {
				// TODO: handle exception
			}
			
		}
	}

}
